home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / totem-xine.postinst < prev    next >
Encoding:
Text File  |  2007-04-05  |  1.6 KB  |  57 lines

  1. #! /bin/sh
  2.  
  3. set -e
  4.  
  5. case "$1" in
  6.     configure)
  7.  
  8.     # Install a link to 'gnome-video-thumbnailer' via alternatives.
  9.     update-alternatives --quiet --install /usr/bin/gnome-video-thumbnailer gnome-video-thumbnailer /usr/bin/totem-video-thumbnailer 40
  10.         
  11.     ;;
  12.  
  13.     abort-upgrade|abort-remove|abort-deconfigure)
  14.  
  15.     ;;
  16.  
  17.     *)
  18.         echo "postinst called with unknown argument \`$1'" >&2
  19.         exit 1
  20.     ;;
  21. esac
  22.  
  23. # Automatically added by dh_installmenu
  24. if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
  25.     update-menus
  26. fi
  27. # End automatically added section
  28. # Automatically added by dh_gconf
  29. if [ "$1" = "configure" ]; then
  30.     gconf-schemas --register totem-handlers.schemas totem-video-thumbnail.schemas totem.schemas 
  31. fi
  32. # End automatically added section
  33. # Automatically added by dh_desktop
  34. if [ "$1" = "configure" ] && which update-desktop-database >/dev/null 2>&1 ; then
  35.     update-desktop-database -q
  36. fi
  37. # End automatically added section
  38. # Automatically added by dh_iconcache
  39. touch -m /usr/share/icons/hicolor
  40. if [ "$1" = configure ] && \
  41.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  42.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ] && \
  43.    [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  44.    [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  45.     gtk-update-icon-cache -q /usr/share/icons/hicolor
  46. fi
  47. # End automatically added section
  48. # Automatically added by dh_makeshlibs
  49. if [ "$1" = "configure" ]; then
  50.     ldconfig
  51. fi
  52. # End automatically added section
  53.  
  54.  
  55. exit 0
  56.  
  57.